<?php
/**
 * Created by PhpStorm.
 * User: mark
 * Date: 2019-04-26
 * Time: 23:17
 */

namespace App\Exceptions;
use Exception;

class ApiException extends Exception{


    public function GetErrorMessage($code, $data=array()){

        return [
            'status_code' => $code,
            'message' => config('show_status.' . $code),
            'data' => $data
        ];

    }


}